<?php

namespace app\admin\validate;

use think\Validate;

class SystemValidate extends Validate
{
    protected $rule =   [
        'key' => 'require',
        'type' => 'require',
        'content' => 'require',
        'title' => 'require',
    ];

    protected $message = [
        'title.require' => '缺少参数title',
        'key.require' => '缺少参数key',
        'type.require' => '缺少参数type',
        'content.require' => '缺少参数content',
    ];

    protected $scene = [
        'add' => ['key', 'type', 'content', 'title'],
    ];
}